package com.prs.crm.domain.flow;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.approval.Application;
import com.prs.crm.domain.assets.AssetsLingYong;
import com.prs.crm.domain.assets.AssetsRevert;
import com.prs.crm.domain.assets.AssetsScrap;
import com.prs.crm.domain.ca.work.ArticleTook;
import com.prs.crm.domain.ca.work.PurchaseApply;
import com.prs.crm.domain.document.Draft;
import com.prs.crm.domain.receipt.ReceiptMoudle;
import com.prs.crm.domain.receipt.ReceiptRegister;

@Entity
@Table(name = "flow_workflowandPerson")
public class WorkFlowAndPerson extends BaseEntity {

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer id;
	/**
	 * 审签流程ID
	 */
	@ManyToOne
	private WorkFlow workFlow;// 流程ID

	/**
	 * 审签人员ID
	 */
	private String nodePersonId;

	/**
	 * 审签状态
	 * 
	 * 1：未审签 2：已审签
	 */

	private String flowstate;

	/**
	 * 审签顺序
	 * 
	 */
	private String flowsequen;
	
	private String type;
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@ManyToOne
	private PurchaseApply purchaseApply;
	
	@ManyToOne
	private ReceiptRegister receiptRegister;
	
	@ManyToOne
	private Draft draft;
	
	@ManyToOne
	private Application application;
	
	@ManyToOne
	private ArticleTook articleTook;
	@ManyToOne
	private AssetsLingYong assetsLingYong;
	@ManyToOne
	private AssetsRevert assetsRevert;
	@ManyToOne
	private AssetsScrap assetsScrap;
	public AssetsScrap getAssetsScrap() {
		return assetsScrap;
	}

	public void setAssetsScrap(AssetsScrap assetsScrap) {
		this.assetsScrap = assetsScrap;
	}

	public AssetsRevert getAssetsRevert() {
		return assetsRevert;
	}

	public void setAssetsRevert(AssetsRevert assetsRevert) {
		this.assetsRevert = assetsRevert;
	}

	public AssetsLingYong getAssetsLingYong() {
		return assetsLingYong;
	}

	public void setAssetsLingYong(AssetsLingYong assetsLingYong) {
		this.assetsLingYong = assetsLingYong;
	}

	public ArticleTook getArticleTook() {
		return articleTook;
	}

	public void setArticleTook(ArticleTook articleTook) {
		this.articleTook = articleTook;
	}

	public Application getApplication() {
		return application;
	}

	public void setApplication(Application application) {
		this.application = application;
	}

	public Draft getDraft() {
		return draft;
	}

	public void setDraft(Draft draft) {
		this.draft = draft;
	}

	public ReceiptRegister getReceiptRegister() {
		return receiptRegister;
	}

	public void setReceiptRegister(ReceiptRegister receiptRegister) {
		this.receiptRegister = receiptRegister;
	}

	private Integer personNum;
	public Integer getPersonNum() {
		return personNum;
	}

	public void setPersonNum(Integer personNum) {
		this.personNum = personNum;
	}
	public PurchaseApply getPurchaseApply() {
		return purchaseApply;
	}

	public void setPurchaseApply(PurchaseApply purchaseApply) {
		this.purchaseApply = purchaseApply;
	}

	public String getFlowsequen() {
		return flowsequen;
	}

	public void setFlowsequen(String flowsequen) {
		this.flowsequen = flowsequen;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public WorkFlow getWorkFlow() {
		return workFlow;
	}

	public void setWorkFlow(WorkFlow workFlow) {
		this.workFlow = workFlow;
	}

	public String getNodePersonId() {
		return nodePersonId;
	}

	public void setNodePersonId(String nodePersonId) {
		this.nodePersonId = nodePersonId;
	}

	public String getFlowstate() {
		return flowstate;
	}

	public void setFlowstate(String flowstate) {
		this.flowstate = flowstate;
	}

}
